package org.dromara.quick.chat.service;

import org.dromara.quick.chat.domain.UserIpLocation;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Stars
* @description 针对表【user_ip_location(存储用户 IP 地址及其对应的属地信息)】的数据库操作Service
* @createDate 2025-03-06 22:12:27
*/
public interface UserIpLocationService extends IService<UserIpLocation> {

    /**
     * 根据userId 更改或添加
     *
     * @param userIpLocation
     * @return
     */
    int insertOrUpdateUserIpLocation(UserIpLocation userIpLocation);

    /**
     * 根据用户查询IP
     * @return 省
     */
    String selectUserIpLocationByUserId(Long userId);

}
